<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
	import="java.util.Collection, foot.stateless.TournoiLocal"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="css/jquery.jOrgChart.css" />
<link rel="stylesheet" href="css/foot.css" />
<title>FootMassonMonediere - menu administration</title>
</head>
<body>
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target=".navbar-collapse">
					<span class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#">FootMassonMonedierePerrin - Menu
					d'administration</a>
			</div>
			<div class="collapse navbar-collapse">
				<ul class="nav navbar-nav">
					<li class="active"><a href="?action=retourMenuAdmin">Menu</a></li>
					<li><a href="?action=deconnexion">Déconnexion</a></li>
			<!--  	<li><a href="?action=ajoutearbitreAdmin">Ajouter Arbitre</a></li>
					<li><a href="?action=affectArbitre">Affecter Arbitre aux 
							Match</a></li> -->	
				</ul>
			</div>
		</div>
	</div>

	<div class="starter-template">
		<div class="container">
		<h1>Affecter des arbitres aux matchs</h1>
		<form>
				<table>
					<c:forEach var="matchs" items="${sessionScope.lesMatchs}">
						<tr>
							<td>
							<c:out
								value="Match : ${matchs.equipe1.nomEquipe } - ${matchs.equipe2.nomEquipe }"></c:out>
							</td>
							<td>
							<select name="select">
								<c:forEach var="arbs" items="${sessionScope.lesArbitres }">

									<option value="${arbs.idArbitre }">${arbs.nomArbitre }
										- ${arbs.prenomArbitre}</option>

								</c:forEach>
							</select>
							</td>
						</tr>
				</c:forEach>
			</table>
				<button type="submit" name="action" value="valideAffectArbitre">Valider les changmements</button>
		</form>
		</div>
	</div>
</body>
</html>